Integrand size = 18, antiderivative size = 49 \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=-\frac {A \sqrt {a+b x}}{a x}+\frac {(A b-2 a B) \text {arctanh}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{a^{3/2}} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {79, 65, 214} \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=\frac {(A b-2 a B) \text {arctanh}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{a^{3/2}}-\frac {A \sqrt {a+b x}}{a x} \]
[In]
[Out]
Rule 65
Rule 79
Rule 214
Rubi steps \begin{align*} \text {integral}& = -\frac {A \sqrt {a+b x}}{a x}+\frac {\left (-\frac {A b}{2}+a B\right ) \int \frac {1}{x \sqrt {a+b x}} \, dx}{a} \\ & = -\frac {A \sqrt {a+b x}}{a x}+\frac {\left (2 \left (-\frac {A b}{2}+a B\right )\right ) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x}\right )}{a b} \\ & = -\frac {A \sqrt {a+b x}}{a x}+\frac {(A b-2 a B) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{a^{3/2}} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.00 \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=-\frac {A \sqrt {a+b x}}{a x}+\frac {(A b-2 a B) \text {arctanh}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{a^{3/2}} \]
[In]
[Out]
Time = 0.51 (sec) , antiderivative size = 42, normalized size of antiderivative = 0.86
method | result | size |
derivativedivides | \(\frac {\left (A b -2 B a \right ) \operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{a^{\frac {3}{2}}}-\frac {A \sqrt {b x +a}}{a x}\) | \(42\) |
default | \(\frac {\left (A b -2 B a \right ) \operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{a^{\frac {3}{2}}}-\frac {A \sqrt {b x +a}}{a x}\) | \(42\) |
risch | \(\frac {\left (A b -2 B a \right ) \operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{a^{\frac {3}{2}}}-\frac {A \sqrt {b x +a}}{a x}\) | \(42\) |
pseudoelliptic | \(\frac {\left (A b -2 B a \right ) \operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{a^{\frac {3}{2}}}-\frac {A \sqrt {b x +a}}{a x}\) | \(42\) |
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 111, normalized size of antiderivative = 2.27 \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=\left [-\frac {{\left (2 \, B a - A b\right )} \sqrt {a} x \log \left (\frac {b x + 2 \, \sqrt {b x + a} \sqrt {a} + 2 \, a}{x}\right ) + 2 \, \sqrt {b x + a} A a}{2 \, a^{2} x}, \frac {{\left (2 \, B a - A b\right )} \sqrt {-a} x \arctan \left (\frac {\sqrt {b x + a} \sqrt {-a}}{a}\right ) - \sqrt {b x + a} A a}{a^{2} x}\right ] \]
[In]
[Out]
Time = 5.50 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.69 \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=- \frac {A \sqrt {b} \sqrt {\frac {a}{b x} + 1}}{a \sqrt {x}} + \frac {A b \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} \sqrt {x}} \right )}}{a^{\frac {3}{2}}} + B \left (\begin {cases} \frac {2 \operatorname {atan}{\left (\frac {\sqrt {a + b x}}{\sqrt {- a}} \right )}}{\sqrt {- a}} & \text {for}\: b \neq 0 \\\frac {\log {\left (x \right )}}{\sqrt {a}} & \text {otherwise} \end {cases}\right ) \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.51 \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=-\frac {1}{2} \, b {\left (\frac {2 \, \sqrt {b x + a} A}{{\left (b x + a\right )} a - a^{2}} - \frac {{\left (2 \, B a - A b\right )} \log \left (\frac {\sqrt {b x + a} - \sqrt {a}}{\sqrt {b x + a} + \sqrt {a}}\right )}{a^{\frac {3}{2}} b}\right )} \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.18 \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=-\frac {\frac {\sqrt {b x + a} A b}{a x} - \frac {{\left (2 \, B a b - A b^{2}\right )} \arctan \left (\frac {\sqrt {b x + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a}}{b} \]
[In]
[Out]
Time = 0.42 (sec) , antiderivative size = 41, normalized size of antiderivative = 0.84 \[ \int \frac {A+B x}{x^2 \sqrt {a+b x}} \, dx=\frac {\mathrm {atanh}\left (\frac {\sqrt {a+b\,x}}{\sqrt {a}}\right )\,\left (A\,b-2\,B\,a\right )}{a^{3/2}}-\frac {A\,\sqrt {a+b\,x}}{a\,x} \]
[In]
[Out]